public class logicoperatordemo1 {
    public static void main(String[] args) {
        //1.&
        System.out.println(true&false);
        System.out.println(true&true);
        System.out.println(false&false);
        System.out.println(false&true);

        System.out.println(" ");

        //2.|
        System.out.println(true|false);
        System.out.println(true|true);
        System.out.println(false|false);
        System.out.println(false|true);

        System.out.println(" ");

        //3.
        System.out.println(true^false);
        System.out.println(true^true);
        System.out.println(false^false);
        System.out.println(false^true);

        System.out.println(" ");

        //4.!
        System.out.println(!false);
        System.out.println(!true);
    }
}
